#ifndef SIGHANDLER_H
#define SIGHANDLER_H 1

#include "main.h"

typedef void (*handler_cb)(int);

extern bool accept_signals;

void
init_sighandler(handler_cb __sighandler);

#ifdef ENABLE_PTHREADS
int
pthread_setsigs(void);
#endif

#endif
